package com.samuel.learning.base.interview;

public class EqualTest {


    public static void main(String[] args) {
        Object a = new Object();
        a.setCode(1);

        Object b = new SubObject();
        b.setCode(1);

        ((SubObject) b).setDesc("我们不一样");
        System.out.println(b.equals(a));
    }


}
